<% content_for :sidebar do %>
  <% @sidebar_title = "Filtrování objednávek" %>

  <%= form_for([:admin, @search]) do |f| %>
  <table>
    <tbody>
      <tr>
        <th><%= f.label :number_contains, "Číslo objednávky" %></th>
      </tr>
      <tr>
        <td><%= f.text_field :number_contains %></td>
      </tr>
      <tr>
        <td><%= button_to_search "Filtrovat" %></td>
      </tr>
    </tbody>
  </table>
  <% end %>
<% end %>